package com.ynet.hmds28.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ynet.hmds28.user.model.Serviceprovide;
import com.ynet.hmds28.user.model.ServiceprovideQuery;

public interface ServiceprovideDao {
	
	//开启GTS事务
    public void enableTXC();
	
    int countByExample(ServiceprovideQuery example);

    int deleteByExample(ServiceprovideQuery example);

    int deleteByPrimaryKey(String seviceproviceid);

    int insert(Serviceprovide record);

    int insertSelective(Serviceprovide record);

    List<Serviceprovide> selectByExample(ServiceprovideQuery example);

    Serviceprovide selectByPrimaryKey(String seviceproviceid);

    int updateByExampleSelective(@Param("record") Serviceprovide record, @Param("example") ServiceprovideQuery example);

    int updateByExample(@Param("record") Serviceprovide record, @Param("example") ServiceprovideQuery example);

    int updateByPrimaryKeySelective(Serviceprovide record);

    int updateByPrimaryKey(Serviceprovide record);
    
    List<Serviceprovide> queryCanSubService(@Param("userId")String userId,@Param("pageNo")int pageNo,@Param("pageSize")int pageSize);
    
    int queryCanSubServiceNum(@Param("userId")String userI);
}